<?php echo $this->render($this->includeDir . '/toolbar.php');?>
<?php 
	$config = new Zendvn_Controller_Config(array('module'=>$this->arrParam['module'],
												'fileConfig'=>'user-group.ini'));
	
	$name 			= $this->Item['name'];
	$type 			= $this->Item['type'];
	$priority		= $this->Item['priority'];
	$avatar 		= $this->Item['avatar'];	
	if(!empty($avatar)){
		$avatarConfig 	= $config->getConfig('avatar');
		$avatarUrl		= $avatarConfig['thumbUrl'] . '/' . $this->Item['avatar'];
		$avatar 		= $this->cmsImage('avatar',$avatarUrl,array('width'=>'75px'));
	}
	
	$ranking 		= $this->Item['ranking'];
	if(!empty($ranking)){
		$rankingConfig 	= $config->getConfig('ranking');	
		$rankingUrl		= $rankingConfig['uploadUrl'] . '/' . $this->Item['ranking'];
		$ranking 		= $this->cmsImage('ranking',$rankingUrl,array('width'=>'75px'));
	}
	
	$options 		= array($this->translate('No'), $this->translate('Yes'));	
	$group_acp 		= $options[$this->Item['group_acp']];

	$options 		= array($this->translate('No'),$this->translate('Yes'));
	$group_default 	= $options[$this->Item['group_default']];
	
	$permission		= $this->Item['permission'];
	
	$status 		= $this->translate($this->Item['status']);
	$ordering 		= $this->Item['ordering'];
	$created 		= $this->Item['created'];
	$created_by 	= $this->Item['created_by'];
	$modified 		= $this->Item['modified'];
	$modified_by 	= $this->Item['modified_by'];
	$arrRow = array(
					array('label'=>$this->translate('Tên nhóm'),'info'=>$name),
					array('label'=>$this->translate('Ảnh đại diện'),'info'=>$avatar),
					array('label'=>$this->translate('Ranking'),'info'=>$ranking),
					array('label'=>$this->translate('Quyền admin'),'info'=>$group_acp),
					array('label'=>$this->translate('Nhóm mặc định'),'info'=>$group_default),
					array('label'=>$this->translate('Quyền'),'info'=>$permission),
					array('label'=>$this->translate('Ngày tạo'),'info'=>$created),
					array('label'=>$this->translate('Người tạo'),'info'=>$created_by),
					array('label'=>$this->translate('Ngày sửa'),'info'=>$modified),
					array('label'=>$this->translate('Người sửa'),'info'=>$modified_by),
					array('label'=>$this->translate('Trạng thái'),'info'=>$status),
					array('label'=>$this->translate('Xắp xếp'),'info'=>$ordering),
				
				);
?>
<div id="element-box">
	<div class="m">
		<div class="form-table">
            	<fieldset class="admin-fieldset">
                <legend class="admin-legend">Thông tin chi tiết</legend>
            	<table width="100%" border="0">
                	<?php echo $this->partialLoop('row-info.php',$arrRow);?>
                </table>
                <div class="clr"></div>
                </fieldset>
            </div>
            <div class="clr"></div>
	</div>
</div>
